from django.db import models

# Create your models here.
class Message(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=20, verbose_name='姓名')
    email = models.EmailField(verbose_name='e-mail')
    address = models.CharField(max_length=100, verbose_name='address')
    content = models.TextField(verbose_name='content')
    create_time = models.TimeField(auto_now_add=True)
    update_time = models.TimeField(auto_now=True)

    class Meta:
        db_table = 'ms_message'
        verbose_name = '留言信息表'
        verbose_name_plural = verbose_name